import requests

headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36',
}

r = requests.get('http://www.pxc.jx.cn/',headers=headers)
f = open("D:\\萍乡学院.html", "w",encoding="ISO-8859-1")
for i in r.text:
    f.write(i)
f.close()